package com.test.entity;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.junit.Test;

public class ArraysAsList {
	
	public static void main(String[] args) {
		
//		String str="333,444,555";
//		List<String> list = Arrays.asList(str.split(","));
//		list.remove(0);
		
//		
		String str="333,444,555";
		List<String> list = new ArrayList<String>();
		list.addAll(Arrays.asList(str.split(",")));
		list.remove(0);
		System.out.println(list.get(0));
		System.out.println(list.toString());
	}
	
	
}
